import request from '@/utils/request';

// 后台管理子系统-数智融合-智库-数智融合-智库 分页查询
export function listSdkLmKb(params, data) {
  return request({
    url: '/web/lm/kb/sdkLmKb/list',
    method: 'post',
    params,
    data,
    hmacReq: true,
    encryptReq: true,
    decryptRes: true,
  });
}

// 后台管理子系统-数智融合-智库-数智融合-智库 分页查询
export function pageSdkLmKb(params, data) {
  return request({
    url: '/web/lm/kb/sdkLmKb/page',
    method: 'post',
    params,
    data,
    hmacReq: true,
    encryptReq: true,
    decryptRes: true,
  });
}

// 后台管理子系统-数智融合-智库-数智融合-智库 查询详情
export function getSdkLmKbInfo(id) {
  return request({
    url: '/web/lm/kb/sdkLmKb/info/' + id,
    method: 'get',
    decryptRes: true,
  });
}

// 后台管理子系统-数智融合-智库-数智融合-智库 新增
export function addSdkLmKb(data) {
  return request({
    url: '/web/lm/kb/sdkLmKb/add',
    method: 'post',
    data,
    hmacReq: true,
    encryptReq: true,
    decryptRes: true,
  });
}

// 后台管理子系统-数智融合-智库-数智融合-智库 修改
export function updateSdkLmKb(data) {
  return request({
    url: '/web/lm/kb/sdkLmKb/edit',
    method: 'post',
    data,
    hmacReq: true,
    encryptReq: true,
    decryptRes: true,
  });
}

// 后台管理子系统-数智融合-智库-数智融合-智库 删除
export function delSdkLmKb(ids) {
  return request({
    url: '/web/lm/kb/sdkLmKb/delete/' + ids,
    method: 'post',
  });
}

// 后台管理子系统-数智融合-智库-数智融合-智库 导入模板
export function tplSdkLmKb() {
  return request({
    url: '/web/lm/kb/sdkLmKb/template',
    method: 'post',
    responseType: 'blob',
    filename: `数智融合-智库模版_${new Date().getTime()}.xlsx`,
  });
}

// 后台管理子系统-数智融合-智库-数智融合-智库 导出
export function exportSdkLmKb(params, data) {
  return request({
    url: '/web/lm/kb/sdkLmKb/export',
    method: 'post',
    params,
    data,
    responseType: 'blob',
    filename: `数智融合-智库_${new Date().getTime()}.xlsx`,
    hmacReq: true,
    encryptReq: true,
  });
}
